package org.ycy.data.generator.entity;

import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;

import static org.ycy.data.generator.constants.CheckInfoConstants.*;

/**
 * @ClassName CheckInfo
 * @Description TODO
 * @Author 原长友
 * @Date 2023/3/5 22:35
 * @Version 1.0
 **/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME,
        include = JsonTypeInfo.As.EXISTING_PROPERTY,
        property = "checkType"
)
@JsonSubTypes({
        @JsonSubTypes.Type(value = StringCheckInfo.class, name = STRING_CHECK),
        @JsonSubTypes.Type(value = NumberCheckInfo.class, name = NUMBER_CHECK),
        @JsonSubTypes.Type(value = PollingCheckInfo.class, name = POLLING_CHECK)
})
public abstract class CheckInfo {


    protected String checkType;


}
